package com.hst.web.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.hst.core.annotation.Comment;
import com.hst.core.dao.BaseEntity;

@Entity
@Table(name = "t_account_info")
@Comment("账户信息表")
public class TAccountInfo extends BaseEntity {

	@Id
	@Column(name = "username", length = 20, nullable = false)
	@Comment("用户名")
	private String userName;
	
	@Column(name = "password", length = 32, nullable = false)
	@Comment("密码")
	private String password;

	@Column(name = "tel_number", length = 20)
	@Comment("手机号")
	private String telNumber;
	
	@Column(name = "invitation_code", length = 16)
	@Comment("邀请码")
	private String invitationCode;
	
	@Column(name = "email", length = 320)
	@Comment("邮箱")
	private String email;
	
	@Column(name = "use_type", length = 2, nullable = false)
	@Comment("用户类型 ")
	private String useType = "0";

	@Column(name = "register_way", length = 2, nullable = false)
	@Comment("注册方式 ")
	private String registerWay = "0";
	
	@Column(name = "account_status", length = 2, nullable = false)
	@Comment("账户状态,00-正常,09-锁定,03-挂失")
	private String accountStatus = "00";
	
	@Column(name = "verify_times", columnDefinition="int default 0")
	@Comment("认证次数,默认值：0")
	private Integer verifyTimes = 0;
	
	@Column(name = "cumulate_score", columnDefinition="int default 0")
	@Comment("累计扣分,默认值：0")
	private Integer cumulateScore = 0;
	
	@Column(name = "problemnum", columnDefinition="int default 0")
	@Comment("累计违规次数,默认值：0")
	private Integer problemNum = 0;

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getTelNumber() {
		return telNumber;
	}

	public void setTelNumber(String telNumber) {
		this.telNumber = telNumber;
	}

	public String getInvitationCode() {
		return invitationCode;
	}

	public void setInvitationCode(String invitationCode) {
		this.invitationCode = invitationCode;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getUseType() {
		return useType;
	}

	public void setUseType(String useType) {
		this.useType = useType;
	}

	public String getRegisterWay() {
		return registerWay;
	}

	public void setRegisterWay(String registerWay) {
		this.registerWay = registerWay;
	}

	public String getAccountStatus() {
		return accountStatus;
	}

	public void setAccountStatus(String accountStatus) {
		this.accountStatus = accountStatus;
	}

	public Integer getVerifyTimes() {
		return verifyTimes;
	}

	public void setVerifyTimes(Integer verifyTimes) {
		this.verifyTimes = verifyTimes;
	}

	public Integer getCumulateScore() {
		return cumulateScore;
	}

	public void setCumulateScore(Integer cumulateScore) {
		this.cumulateScore = cumulateScore;
	}

	public Integer getProblemNum() {
		return problemNum;
	}

	public void setProblemNum(Integer problemNum) {
		this.problemNum = problemNum;
	}
}
